package com.bamboo.core.domain.request;

import com.bamboo.core.enums.HttpMethodEnum;

/**
* @description 请求日志的数据结构
* @date 2025/3/7 15:10
* @author chenzh
*/
public class RequestLogEntity {
    private String name;
    /**
     * 请求时间，精确到毫秒
     */
    private String datetime;
    private String ip;
    private String uri;
    private String method;
    private String query;
    private String body;

    public RequestLogEntity() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDatetime() {
        return datetime;
    }

    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getQuery() {
        return query;
    }

    public void setQuery(String query) {
        this.query = query;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    @Override
    public String toString() {
        return "RequestLogEntity{" +
                "name='" + name + '\'' +
                ", datetime='" + datetime + '\'' +
                ", ip='" + ip + '\'' +
                ", uri='" + uri + '\'' +
                ", method='" + method + '\'' +
                ", query='" + query + '\'' +
                ", body='" + body + '\'' +
                '}';
    }
}
